package com.lx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lx.entity.LxEnv;
import com.lx.entity.LxUser;
import com.lx.mapper.LxEnvMapper;
import com.lx.service.LxEnvService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 赵敬轩
 * @since 2021-09-12
 */
@Service
public class LxEnvServiceImpl extends ServiceImpl<LxEnvMapper, LxEnv> implements LxEnvService {
    @Autowired
    private LxEnvMapper lxEnvMapper;
    public IPage<LxEnv> selectAllEnv(Integer page,Integer limit){
        Page<LxEnv> pager = new Page<>(page,limit);
        IPage<LxEnv> lxEnvIPage = lxEnvMapper.selectPage(pager,null);
        return lxEnvIPage;
    }


}
